/**
* Copyright (c) 2022 - present TinyVue Authors.
* Copyright (c) 2022 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/

@import '../custom.less';
@import './vars.less';

@locales-prefix-cls: ~'@{css-prefix}locales';
@popover-prefix-cls: ~'@{css-prefix}popover';
@popper-prefix-cls: ~'@{css-prefix}popper';

.@{locales-prefix-cls} {
  .inject-Locales-vars() ;

  cursor: pointer;

  svg {
    margin-left: var(--tv-Locales-svg-margin-left);
  }
  &__text {
    font-size: var(--tv-Locales-text-font-size);
    color: var(--tv-Locales-svg-color);
    display: inline-flex;
    align-items: center;
  }
  &__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    svg {
      width: var(--tv-Locales-svg-size);
      height: var(--tv-Locales-svg-size);;
      fill: var(--tv-Locales-text-color);
    }
    .chevron-up {
      width: var(--tv-Locales-up-svg-size);
      height: var(--tv-Locales-up-svg-size);
    }
  }

  &__popper {
    .inject-Locales-vars() ;
    &.@{popover-prefix-cls}.@{popper-prefix-cls} {
      padding: var(--tv-Locales-popper-padding-h) 0;
    }

    .poplist {
      width: 100px;

      li {
        list-style: none;
        cursor: pointer;
        padding: 0 var(--tv-Locales-popper-li-padding-h);
        line-height: var(--tv-Locales-popper-li-line-heigaht);

        &:hover {
          background-color: var(--tv-Locales-popper-li-hover-color);
        }
      }
    }
  }
}
